<?php
class Core_Form_BaseForm extends Zend_Form
{
	protected $elementDecorators = array(
		'ViewHelper',
		'Errors',
		array(array('data'  => 'HtmlTag'), array('tag' => 'span', 'class' => 'data-field')),
		array('Label', array('tag' => 'span')),
		array(array('row' => 'HtmlTag'), array('tag' => 'div', 'class' => 'row-div')),
	);

	protected $buttonDecorators = array(
		'ViewHelper',
		array(array('data' => 'HtmlTag'),  array('tag' => 'span', 'class' => 'data-field')),
		array(array('label' => 'HtmlTag'), array('tag' => 'span',  'placement' => 'prepend')),
		array(array('row' => 'HtmlTag'), array('tag' => 'div', 'class' => 'row-div')),
	);

	public  function loadDefaultDecorators()
	{
		$this->setDecorators(array(
			 'FormElements',
			 array('HtmlTag', array('tag' => 'div', 'class' => 'form-div')),
			 'Form',
		));
	}

}